{include file="header.tpl"}

<div id="block_featured" class="block">

	<img src="images/theme/ribbon.png" class="ribbon"/>
	<span class="ribbon_text">{$title}</span>
	
    <div class="block_inside">
		<div class="table_div">
			<table id="practices" class="tablesorter">
				<thead>
					<tr style="color:#789;font-weight: bold">
						<th>Lp.</th>
						<th>Data dodania</th>
						<th>Nazwa firmy</th>
						<th>Data rozpoczęcia</th>
						<th>Data zakończenia</th>
						<th>Liczba miejsc</th>
						<th>Akcje</th>
					</tr>
				</thead>
				<tbody>
					{if !empty($practices)}
						{foreach item=practice from=$practices name=practice}
						<tr style="background-color:{cycle values=#F6F6F6,white}">
							<td>{$smarty.foreach.practice.iteration}</td>
							<td>{$practice.add_date}</td>
							<td>{$practice.company_name}</td>
							<td>{$practice.date_start}</td>
							<td>{$practice.date_end}</td>
							{if $practice.amount > 0}
								<td>{$practice.amount}</td>
							{else}
								<td><a href="#" class="tip_trigger"><span class="tip">Brak wolnych miejsc</span><img src="images/user--minus.png"/></a></td>
							{/if}
							<td>
								<a href ="practice_details.php?id={$practice.id}" class="extLink" >
									<img src="images/magnifier-left.png"/>
								</a>
							</td>
						</tr>
						{/foreach}
					{else}
						<tr>
							<td colspan="7">Brak ofert praktyk.</td>
						</tr>			
					{/if}
				</tbody>
			</table>
		</div>
    </div>
</div>
{include file="footer.tpl"}
